Piwik\Db C

Total Complexity 105
Dependencies 15
Dependents 107
Total lines 770
Lines of code 355
Logical lines of code 218
Comment lines 363
Methods 37
Properties 5

Methods 37

Method Rating Maintainability Complexity Lines of code
optimizeTables()
A
48 13 32
segmentedFetchFirst()
S
59 6 13
executeWithDatabaseWriterReconnectionAttempt()
S
57 5 16
lockTables()
S
58 5 16
checkBoundParametersIfInDevMode()
S
60 5 13
getDbLock()
S
58 4 15
segmentedFetchAll()
S
58 4 15
segmentedQuery()
S
60 4 13
segmentedFetchOne()
S
60 4 13
createReaderDatabaseObject()
S
56 3 18
logExtraInfoIfDeadlock()
S
62 4 10
isLockPrivilegeGranted()
S
62 3 12
isOptimizeInnoDBSupported()
S
61 3 11
get()
S
66 3 9
logSql()
S
66 3 7
getReader()
S
67 3 9
destroyDatabaseObject()
S
65 3 10
deleteAllRows()
S
62 3 10
exec()
S
59 2 14
fetchOne()
S
65 2 9
fetchAssoc()
S
65 2 9
getDatabaseConfig()
S
64 2 9
fetchRow()
S
65 2 9
fetchAll()
S
65 2 9
dropTables()
S
69 2 6
query()
S
65 2 9
unlockAllTables()
S
79 1 3
hasReaderDatabaseObject()
S
79 1 3
hasReaderConfigured()
S
74 1 4
createDatabaseObject()
S
72 1 5
releaseDbLock()
S
72 1 5
setDatabaseObject()
S
80 1 3
dropAllTables()
S
75 1 4
getTableStatus()
S
79 1 3
enableQueryLog()
S
80 1 3
isQueryLogEnabled()
S
80 1 3
hasDatabaseObject()
S
79 1 3